﻿package com.artionscript.tools.stamps.florids 
{
	import com.artionscript.tools.FillVO;
	import com.artionscript.tools.LineVO;
	import com.artionscript.tools.stamps.ArcStamp;
	import com.artionscript.tools.Tool;
	import flash.display.Sprite;
	/**
	 * ...
	 * @author Trevor Boyle
	 */
	public class Florid5 extends Tool
	{
		
		private const DEFAULT_WIDTH:Number = 50;
		
		public function Florid5(width:Number=0, height:Number=0, fillVO:FillVO=null, lineVO:LineVO=null, centre:Boolean=false) 
		{
			var container:Sprite = new Sprite();
			
			var s:Sprite = new Sprite;
			setFillAndLineStyle(fillVO,lineVO, s);
			s.graphics.drawPath(Vector.<int>([1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2]),Vector.<Number>([108.467,61.342,115.27301238801526,62.03706278475893,122.307875,68.36875,129.42125483544385,74.77110618596198,130.988,81.81700000000001,125.65963496668888,77.63762364509046,117.07024999999999,74.203,107.89897032541236,70.5356950476387,102.836,71.06800000000001,102.836,70.74704385781075,106.0620625,74.17625000000001,109.93893750000002,78.29725000000003,113.19300000000001,83.36100000000002,117.74868750000003,90.45025000000003,120.4079375,98.41225,123.73199999999999,108.36474999999994,123.886,119.12,101.78291935470027,50.75044451086106,-26.412,29.286,-41.35699060757308,26.783519806308853,-54.469849609375,22.371099609375,-66.61665439356784,18.28375246786908,-77.108796875,12.585984375000002,-95.51970965133364,2.5879204368451454,-108.35237500000001,-12.031874999999998,-113.78111019826322,-18.216638330375257,-118.06820117187502,-25.083111328125,-121.82014290477898,-31.092455836252153,-124.58751562500001,-37.441546875,-129.03101210949154,-47.636112827120684,-130.259,-56.516999999999996,-130.17999999999998,-56.404999999999994,-133.76920858074544,-78.35066470794598,-122.84687499999998,-96.53225,-111.67594125967345,-115.12766123608193,-92.09199999999998,-117.92599999999999,-75.8693247058447,-120.24474801038208,-65.18699999999998,-116.98299999999999,-64.9002284068515,-116.88190026605739,-63.935609374999984,-116.60595312499998,-63.07276433353719,-116.35912031898519,-62.37737499999999,-116.09287499999999,-60.15834127976799,-115.24326843833927,-56.83699999999998,-113.192,-36.16117798420055,-100.42028829285292,-45.79999999999998,-82.048,-49.63937499999998,-74.72925000000001,-57.32862499999998,-72.53925000000001,-64.24999999999999,-70.56795094612609,-64.24999999999999,-71.813,-72.26144376507388,-71.813,-78.32737499999999,-77.14175,-84.57399999999998,-82.6292343910352,-84.57399999999998,-90.302,-84.57149999999999,-90.35150000000002,-84.56899999999999,-90.40100000000001,-84.31390724891597,-95.60597762318241,-80.15899999999999,-99.13100000000001,-76.20025000000001,-102.490375,-70.96924999999999,-101.242625,-66.52999999999999,-100.18373106241637,-66.52999999999999,-99.32300000000001,-66.52999999999999,-100.018875,-68.642,-97.95512500000001,-70.75399999999999,-95.89137500000001,-70.75399999999999,-92.412,-70.75399999999999,-86.22237499999999,-64.035,-86.126625,-57.31599999999999,-86.03087500000002,-57.31599999999999,-94.524,-57.31599999999999,-101.50978205699022,-65.68099999999998,-106.588,-66.93554190881612,-107.0773925562169,-68.44999999999999,-107.76899999999999,-82.745652140528,-114.29724144438174,-96.57399999999998,-106.035,-101.30846927542333,-101.5507191927091,-101.78399999999998,-95.803,-102.34399999999998,-89.00549999999987,-98.92149999999998,-83.0875,-95.38699999999997,-76.9758357195033,-95.38699999999997,-78.529,-95.38699999999997,-78.09274156170657,-99.84387499999997,-79.584875,-104.86562499999995,-81.266125,-107.68999999999997,-84.393,-106.1465917091635,-72.06757435666913,-97.04999999999997,-63.555,-97.04999999999997,-62.55159881753956,-103.74387499999996,-67.48325,-107.04142187499994,-69.91268749999998,-109.76910937499997,-72.92568750000001,-113.17871874999997,-76.69193750000001,-115.49799999999996,-81.16,-115.67255414769345,-79.82921111331126,-115.74499999999996,-78.49499999999999,-115.72785148049758,-75.62643376546228,-115.41903124999996,-72.71270312499999,-115.00189252149204,-68.77698332898929,-114.09124999999996,-65.19537499999998,-111.6418010941225,-55.561554487917824,-106.00699999999996,-49.734999999999985,-96.99692653632442,-40.41768311122442,-86.97274999999996,-37.54612499999998,-76.17366055687718,-34.45258282505264,-71.96899999999997,-41.67199999999998,-67.53340644432558,-49.28738981900684,-75.43999999999997,-50.98974999999999,-83.32077647767562,-52.68655153361037,-81.88699999999997,-43.655999999999985,-81.88699999999997,-43.507248520774105,-83.44068749999997,-44.471640624999985,-85.24431249999996,-45.591171874999986,-86.49399999999997,-47.110624999999985,-90.49299999999998,-51.97287499999997,-87.45299999999997,-59.01099999999998,-83.89662524649155,-67.24777747249955,-71.31287499999998,-65.39437499999998,-58.884684925828225,-63.56388426703379,-56.61199999999997,-55.36399999999998,-56.61199999999997,-57.050193998692066,-53.60837499999997,-59.53737499999998,-48.63862499999999,-63.65262499999997,-38.80799999999998,-63.36199999999998,-45.53745382511884,-79.13771667465532,-35.67624999999998,-88.685375,-26.6852255358795,-97.3905220693237,-17.38999999999998,-92.98699999999998,-10.551874999999978,-89.74762499999997,-10.599624999999978,-85.18887499999997,-10.614546874999977,-83.7642656250001,-11.316265624999978,-82.37867187499998,-12.01499999999998,-80.99897098641726,-12.01499999999998,-81.27799999999998,-12.01499999999998,-82.04574999999997,-12.68687499999998,-82.81349999999998,-14.03062499999997,-84.34899999999998,-17.38999999999998,-84.34899999999998,-21.421124999999982,-84.34899999999998,-21.516874999999978,-79.54999999999998,-21.61262499999998,-74.75099999999998,-17.58199999999998,-74.75099999999998,-14.058968749999968,-74.75099999999998,-11.67951562499998,-76.82053124999997,-10.838826675005539,-77.55172113361795,-9.686451171874978,-78.94180078124998,-7.935106825381066,-81.05440047244694,-7.648374999999978,-81.37349999999998,-4.903593500097668,-84.42812596867671,-1.385796874999979,-85.92646874999998,3.473031250000009,-87.99599999999998,11.21100000000002,-87.99599999999998,19.063281250000017,-87.99599999999998,24.83695312500002,-84.51678124999998,29.455890625000027,-81.73340624999997,32.54212500000003,-76.86249999999998,34.74657812500004,-73.38328124999995,35.964234375000025,-69.20821874999999,36.74100000000002,-66.54486853746951,36.74100000000002,-65.72899999999998,36.74100000000002,-66.92944361576643,33.28587500000002,-69.47149999999999,28.199125000000045,-73.21399999999998,20.04100000000002,-73.21399999999998,15.612687199353239,-73.21399999999998,11.933765625000017,-70.50609374999999,9.294401414156205,-68.56336387709511,6.147875000000011,-64.36149999999999,5.662688764769045,-63.71358345739329,4.880651611328133,-62.63626220703125,3.9357553994015504,-61.334589052480766,3.636205078125007,-60.92816015625,2.1753007819225663,-58.94600998503995,1.1177968750000034,-57.748906250000005,-1.8006343150418131,-54.44521644310083,-4.722,-53.637,-9.152229248308572,-52.41323780100071,-14.369,-53.206,-6.720060948815376,-45.16776527608779,-6.575,-37.44800000000001,-6.575,-38.36530469433681,-9.630749999999999,-40.24750000000001,-13.630250000000004,-42.711000000000006,-18.349,-41.031000000000006,-21.82305999881618,-39.79414261234201,-24.5545,-32.48887500000001,-26.0019390018879,-28.61768278755913,-27.561343750000002,-26.238796875000006,-29.939056528538764,-22.611574731534354,-33.832,-19.917000000000005,-41.11075,-14.877625000000002,-50.54825,-18.556875000000005,-58.53,-21.668594596026498,-58.53,-23.244000000000007,-58.53,-23.742395997692743,-57.68625,-21.094656250000007,-56.846500000000006,-18.459468750000006,-56.8665,-16.03025000000001,-56.930499999999995,-8.256750000000004,-65.568,-5.4580000000000055,-68.61041638803106,-4.469976366118672,-72.862,-4.669000000000006,-72.4060000000013,-4.465553846154427,-72.47999999999999,-4.4980000000000055,-55.95012490026638,2.605550752676666,-42.391156249999995,1.2915781249999978,-31.301307839869654,0.21688301862045933,-22.834,-6.374875,-16.325597376206975,-11.44163482439048,-12.33609375,-18.837390625,-9.14678119023383,-24.749749422947303,-9.425,-27.436,-9.785000000000002,-30.914750000000012,-8.201500000000001,-33.26625,-6.546000000000001,-35.724670113672246,-6.546000000000001,-34.922,-6.2459999999999996,-29.703249999999972,-2.479000000000001,-29.535249999999994,1.2279999999999989,-29.369925869392084,1.2279999999999989,-30.410999999999998,1.2279999999999989,-30.063730900839438,0.5022656249999989,-32.03965624999999,-0.2534531250000015,-34.097218749999996,-0.40337500000000115,-36.241749999999996,-0.8831250000000004,-43.10424999999999,4.874999999999998,-48.263,10.633124999999998,-53.42175,17.831374999999998,-51.55024999999999,23.878,-49.978165300593886,23.878,-48.647,15.867537232893483,-44.13267404202654,22.94175,-38.59375,29.958395340301244,-33.099899751322155,33.092,-41.928,35.731375,-49.366125,31.604124999999996,-53.01337499999999,26.948999999999998,-57.127108031982544,26.948999999999998,-55.172999999999995,32.42623198101292,-55.80511493108865,38.850125,-51.79024999999999,47.043299484132774,-46.66960293856714,47.296,-37.321,47.535999999999994,-28.443500000000196,42.4495,-21.629499999999997,37.315,-14.751198024181651,37.315,-16.590999999999998,41.633749999999985,-16.350375,42.68925,-12.799624999999997,43.01909375,-11.690015624999985,42.98303125,-10.382546874999996,42.97176171875002,-9.973962890625318,42.925253906250006,-9.594623046874997,42.881,-9.233667134743015,42.881,-9.296999999999997,37.977414927410145,-11.090827372806373,35.346875,-7.3768749999999965,34.678582904508566,-6.433340561341329,32.947390625,-3.1417031249999967,31.2597129873189,0.06719686746309073,29.828,2.0290000000000035,25.914078970101944,7.393699948237264,18.527,5.955000000000004,20.243875,7.176875000000003,20.696625,10.003625000000005,20.806,10.686509110988407,20.806,12.586000000000004,15.32514414468973,9.204285811921414,12.312750000000001,11.170625000000003,11.924273856533858,11.424202662098995,9.901375000000002,13.260859375000003,8.391985691871394,14.63128380141226,6.986000000000001,15.081000000000003,3.9866250000000014,16.041000000000004,1.2513750000000006,13.834000000000003,-0.8839999999999995,12.111023078329223,-0.8839999999999995,11.435000000000002,-0.8839999999999995,12.375624994573478,-5.299125,15.466500000000003,-11.057875000000001,19.498000000000005,-17.776,19.498000000000005,-22.39136548223348,19.498000000000005,-27.335,19.190000000000005,-19.75604942103136,20.05628264038077,-12.546375000000001,20.351500000000005,-4.228385362726438,20.69209997645564,3.4339999999999975,20.265000000000004,24.7948992950445,19.073651498947395,35.334875,14.949250000000005,43.825075036872725,11.626946918980813,44.992999999999995,6.539000000000003,45.95514507492083,2.3451077672475504,41.597249999999995,0.9970000000000033,37.23388257166742,-0.3528006308921926,36.547,3.084000000000003,36.547,3.2749302172275283,36.290625,2.437687500000003,36.04174999999999,1.6249374999999797,36.07925,0.7927500000000032,36.19925,-1.8702499999998385,39.138,-3.7289999999999965,43.95875583531466,-6.779514430341573,50.34325,-3.837124999999997,57.815076930154675,-0.3936220352334403,56.221999999999994,9.803000000000004,56.221999999999994,11.218027738310514,61.54849999999999,6.683875000000004,67.35499999999999,1.7411250000000038,69.755,-7.376999999999995,72.407233180955,-17.455347914501605,65.099875,-18.282249999999998,57.1347790380541,-19.18358182184687,60.443999999999996,-11.983999999999995,60.443999999999996,-10.76025,56.26899999999999,-12.919249999999995,52.093999999999994,-15.078249999999997,52.093999999999994,-21.196999999999996,52.093999999999994,-30.077453430250973,65.50675,-31.5505,79.36052954144033,-33.071982353102676,83.66999999999999,-18.509999999999994,87.2027285703391,-6.571189087930875,75.997875,6.044375000000007,65.38930544978462,17.988581874446847,47.68199999999999,24.235000000000003,58.97104415934383,23.638304479396005,64.37899999999999,22.377000000000002,73.61649999999996,20.21700000000001,75.10399999999998,15.802000000000003,75.56884375,14.422312499999972,75.20290625,12.982687500000004,74.74399999999999,11.177316609735225,74.74399999999999,11.819000000000003,83.86212499999998,14.338375,84.789875,24.783125000000005,85.079796875,28.047109375000044,84.515890625,31.711953125,83.89399999999999,35.7536390793849,83.89399999999999,34.724000000000004,87.65644444662497,26.44721021421295,95.435375,24.694375000000008,103.0164063579682,22.986132635176002,108.464,28.581000000000003,112.90337500000001,33.14037500000001,112.98262499999998,40.018625,113.00739062499999,42.168078125,112.59317187499998,44.291484375,112.17399999999999,46.44028178989054,112.17399999999999,45.985,107.48658599560335,41.51984911312612,102.975875,42.5539375,98.98295692266835,43.469320954522374,97.41225,47.713,93.19487301902701,59.10735630081152,108.467,61.342,108.467,61.342]),"nonZero");
			s.graphics.endFill();
			container.addChild(s);
			
			if (width == 0) {
				width = DEFAULT_WIDTH;
			}
			
			if (height == 0) {
				height = (width / container.width) * container.height;
			}
			
			container.width = width;
			container.height = height;
			
			if (centre) {
				container.x = 0 - container.width / 2;
				container.y = 0 - container.height / 2;
			}
			
			this.addChild(container);
		}
		
	}

}